<template>
    <div>
        <button>
            <a href="#"><span class="title">{{ props.title }}</span></a>
        </button>
    </div>
</template>
<script setup>
const props = defineProps({
    title: {
        type: String,
        default: "",
    },
})
</script>
<style scoped lang="scss">
/* From Uiverse.io by TISEPSE */
a {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #212121;
    text-transform: uppercase;
    color: #fefefe;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

a::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% - 12px);
    background-color: #f9f8f7;
    transition: 0.3s ease-in-out;
    transform: scaleY(1);
}

a:hover::before {
    transform: scaleY(0);
}

a::after {
    content: '';
    position: absolute;
    left: 6px;
    top: -2px;
    height: calc(100% + 4px);
    width: calc(100% - 12px);
    background-color: #f9f8f7;
    transition: 0.3s ease-in-out;
    transform: scaleX(1);
    transition-delay: 0.5s;
}

a:hover::after {
    transform: scaleX(0);
}

a span {
    position: relative;
    z-index: 3;
}

button {
    background-color: none;
    text-decoration: none;
    background-color: #f9f8f7;
    border: none;
}

.title {
    letter-spacing: 6px;
    font-size: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212121;
}
</style>